<?php
	class updateAnswer_model extends Model
	{
		function updateAnswer_model()
		{
			parent::Model();
		}
		
		function update_isbest($aid)
		{
			$this->db->where('id',$aid);
			$data = array('isbest' => 1);
			$this->db->update('ci_ask_answer',$data);
			$this->db->where('id',$aid);
			$this->db->select('qid');
			$query = $this->db->get('ci_ask_answer');
			return $query->result();	
		}
	}
?>